package com.allwees.bs.core.model.user.entity;

import com.allwees.bs.core.modelbase.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@MappedSuperclass
public abstract class UserCashModel extends BaseEntity {

    public UserCashModel(String userUuid,BigDecimal value) {
        this.userUuid = userUuid;
        this.value = value;
    }

    /** user uuid **/
    @Column(length = 64)
    protected String userUuid;

    /** value **/
    protected BigDecimal value;

}
